package com.xca.znb.model.impl;

import android.content.Context;

import com.xca.znb.database.UserDAO;
import com.xca.znb.model.imodel.IAddGoods;

public class AddGoodsImpl implements IAddGoods {
    private UserDAO userDAO ;
    public AddGoodsImpl(Context context){userDAO = new UserDAO(context) ;}
    @Override
    public boolean addGoods(String name, String first_image, String img_list, String type, double price,
                            String unit, String freight, String address, String text, String publisher , String state) {
        return userDAO.addGoods(name, first_image, img_list, type, price, unit, freight, address, text, publisher , state);
    }
}
